from spider.util.mysignal import MySignal


class Test:
    def __init__(self):
        self.signal = MySignal()
        pass

    def send(self):
        self.signal.send_str.emit('test')


class Main:
    def receive(self, p_str):
        print(p_str)

    def main(self):
        test = Test()
        test.signal.send_str.connect(self.receive)
        test.send()


if __name__ == "__main__":
    Main().main()











